package com.example.house.web.controller.user;

import com.example.house.common.bean.Result;
import com.example.house.web.service.user.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/sys/user")
public class SysUserController {

    @Autowired
    private SysUserService sysUserService;

    @RequestMapping(value = "/info",method = RequestMethod.GET)
    public Result index(HttpServletRequest request, HttpServletResponse response){
        return sysUserService.list();
    }
}
